from django.conf.urls import url

from .views import *
from django.views.generic import TemplateView

urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name="index.html")),

    url(r'^api/login$', user_login_view),
    url(r'^api/project/list', get_project_list_view),
    url(r'^api/user/list',get_user_list_view),
    url(r'^api/deployprofiles/list',get_deploy_profiles),
    url(r'^api/upload',upload_data),
    url(r'^api/parse_client_data',process_parse_client_data),
    url(r'^api/clean_temp_url',clean_temp_folder),
    url(r'^api/process_combine_client_data',process_combine_client_data),
    url(r'^api/get_process_status',get_process_status), #轮询
    url(r'^api/process_upload',process_upload),
]



# testPatterns = [
#     url(r'^add(\d+)and(\d+)/$', test_views.add, name='add'),
#     url(r'^southpark-b/stan(?P<stan_power>\d+)/cartman(?P<cartman_power>\d+)/$', test_views.southparkB,name='southparkB'),
#     url(r'^projectlist/$',test_views.project_list,name='project_list'),
# ]
#
# urlpatterns.extend(testPatterns)